#include "pthreadP.h"

BIN		= preloader
LINK	= gcc -Wall -O2
GCC		= gcc -Wall -c -O2
LIB     = -lxml2 -lpthread
INCLUDE = -I/usr/include/libxml2/
CFLAGS  += -D_GNU_SOURCE  $(INCLUDE)

CSOURCE = $(wildcard *.c)
OBJS    = $(patsubst %.c,%.o,$(CSOURCE))

all: $(OBJS)
	$(LINK) -o $(BIN) $(OBJS) $(LIB) $(INCLUDE) $(CFLAGS)

clean:
	rm -f $(OBJS) $(BIN)
